<script lang="ts" setup>
import { useFrameSysManager, useOldFrameSysManager } from './SysFrameHooks'

const { state, iframeRef } = useOldFrameSysManager()
// const { state, iframeRef } = useFrameSysManager()
</script>

<template>
  <div class="frame-box">
    <iframe ref="iframeRef"
            :src="state.framePath"
            allowfullscreen
            frameborder="0"
            width="100%"
            height="100%"
            style="width:100%;height:100%" />

    <v-loading v-if="state.isLoading" />
  </div>
</template>

<style lang="scss" scoped>
.frame-box{
  @include abs-group();
  overflow:hidden;
}
iframe{
  display: block;
  border: none;
}
</style>
